package org.dingxf.controller;

import org.dingxf.entity1.Student;
import org.dingxf.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@RestController
@CrossOrigin
public class StudentController {

    @Autowired
    private StudentService studentService;


    @RequestMapping("/upload")
    public String uploadStudent(){
        List<Student> list = studentService.list();
        System.out.println(list);
        return "ok";
    }
}
